package com.heima.article.feign;

import com.heima.article.dto.ApLikesBehavior;
import com.heima.article.dto.ApUnlikesBehavior;
import com.heima.article.dto.LikesBehaviorDto;
import com.heima.article.dto.UnLikesBehaviorDto;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign {
    /*
        行为微服务  查询点赞
     */
    @PostMapping("/api/v1/likes_behavior/getLikes")
    public ResponseResult<ApLikesBehavior> getLikes(@RequestBody LikesBehaviorDto dto);

    /*
        查询 不喜欢
     */
    @PostMapping("/api/v1/unlikes_behavior/getUnlikes")
    public ResponseResult<ApUnlikesBehavior> getUnLikes(@RequestBody UnLikesBehaviorDto dto);
}
